Optimal. Leaf size=144 \[ -\frac {1}{3 a c x^3}+\frac {b c+a d}{2 a^2 c^2 x^2}-\frac {b^2 c^2+a b c d+a^2 d^2}{a^3 c^3 x}-\frac {(b c+a d) \left (b^2 c^2+a^2 d^2\right ) \log (x)}{a^4 c^4}+\frac {b^4 \log (a+b x)}{a^4 (b c-a d)}-\frac {d^4 \log (c+d x)}{c^4 (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {84}
\begin {gather*} \frac {b^4 \log (a+b x)}{a^4 (b c-a d)}+\frac {a d+b c}{2 a^2 c^2 x^2}-\frac {\log (x) (a d+b c) \left (a^2 d^2+b^2 c^2\right )}{a^4 c^4}-\frac {a^2 d^2+a b c d+b^2 c^2}{a^3 c^3 x}-\frac {d^4 \log (c+d x)}{c^4 (b c-a d)}-\frac {1}{3 a c x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 84
Rubi steps
\begin {align*} \int \frac {1}{x^4 (a+b x) (c+d x)} \, dx &=\int \left (\frac {1}{a c x^4}+\frac {-b c-a d}{a^2 c^2 x^3}+\frac {b^2 c^2+a b c d+a^2 d^2}{a^3 c^3 x^2}-\frac {(b c+a d) \left (b^2 c^2+a^2 d^2\right )}{a^4 c^4 x}-\frac {b^5}{a^4 (-b c+a d) (a+b x)}-\frac {d^5}{c^4 (b c-a d) (c+d x)}\right ) \, dx\\ &=-\frac {1}{3 a c x^3}+\frac {b c+a d}{2 a^2 c^2 x^2}-\frac {b^2 c^2+a b c d+a^2 d^2}{a^3 c^3 x}-\frac {(b c+a d) \left (b^2 c^2+a^2 d^2\right ) \log (x)}{a^4 c^4}+\frac {b^4 \log (a+b x)}{a^4 (b c-a d)}-\frac {d^4 \log (c+d x)}{c^4 (b c-a d)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 139, normalized size = 0.97 \begin {gather*} \frac {6 \left (b^4 c^4-a^4 d^4\right ) x^3 \log (x)-6 b^4 c^4 x^3 \log (a+b x)+a \left (2 a^2 b c^4-3 a b^2 c^4 x+6 b^3 c^4 x^2+a^3 c d \left (-2 c^2+3 c d x-6 d^2 x^2\right )+6 a^3 d^4 x^3 \log (c+d x)\right )}{6 a^4 c^4 (-b c+a d) x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 157, normalized size = 1.09
method | result | size |
norman | \(\frac {-\frac {1}{3 a c}+\frac {\left (a d +b c \right ) x}{2 a^{2} c^{2}}-\frac {\left (a^{2} d^{2}+a b c d +b^{2} c^{2}\right ) x^{2}}{a^{3} c^{3}}}{x^{3}}+\frac {d^{4} \ln \left (d x +c \right )}{c^{4} \left (a d -b c \right )}-\frac {b^{4} \ln \left (b x +a \right )}{a^{4} \left (a d -b c \right )}-\frac {\left (a^{3} d^{3}+a^{2} b c \,d^{2}+a \,b^{2} c^{2} d +b^{3} c^{3}\right ) \ln \left (x \right )}{a^{4} c^{4}}\) | \(152\) |
default | \(-\frac {b^{4} \ln \left (b x +a \right )}{a^{4} \left (a d -b c \right )}+\frac {d^{4} \ln \left (d x +c \right )}{c^{4} \left (a d -b c \right )}-\frac {1}{3 a c \,x^{3}}-\frac {-a d -b c}{2 a^{2} c^{2} x^{2}}-\frac {a^{2} d^{2}+a b c d +b^{2} c^{2}}{a^{3} c^{3} x}+\frac {\left (-a^{3} d^{3}-a^{2} b c \,d^{2}-a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (x \right )}{a^{4} c^{4}}\) | \(157\) |
risch | \(\frac {-\frac {1}{3 a c}+\frac {\left (a d +b c \right ) x}{2 a^{2} c^{2}}-\frac {\left (a^{2} d^{2}+a b c d +b^{2} c^{2}\right ) x^{2}}{a^{3} c^{3}}}{x^{3}}-\frac {b^{4} \ln \left (b x +a \right )}{a^{4} \left (a d -b c \right )}-\frac {\ln \left (-x \right ) d^{3}}{a \,c^{4}}-\frac {\ln \left (-x \right ) b \,d^{2}}{a^{2} c^{3}}-\frac {\ln \left (-x \right ) b^{2} d}{a^{3} c^{2}}-\frac {\ln \left (-x \right ) b^{3}}{a^{4} c}+\frac {d^{4} \ln \left (-d x -c \right )}{c^{4} \left (a d -b c \right )}\) | \(174\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 156, normalized size = 1.08 \begin {gather*} \frac {b^{4} \log \left (b x + a\right )}{a^{4} b c - a^{5} d} - \frac {d^{4} \log \left (d x + c\right )}{b c^{5} - a c^{4} d} - \frac {{\left (b^{3} c^{3} + a b^{2} c^{2} d + a^{2} b c d^{2} + a^{3} d^{3}\right )} \log \left (x\right )}{a^{4} c^{4}} - \frac {2 \, a^{2} c^{2} + 6 \, {\left (b^{2} c^{2} + a b c d + a^{2} d^{2}\right )} x^{2} - 3 \, {\left (a b c^{2} + a^{2} c d\right )} x}{6 \, a^{3} c^{3} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.83, size = 149, normalized size = 1.03 \begin {gather*} \frac {6 \, b^{4} c^{4} x^{3} \log \left (b x + a\right ) - 6 \, a^{4} d^{4} x^{3} \log \left (d x + c\right ) - 2 \, a^{3} b c^{4} + 2 \, a^{4} c^{3} d - 6 \, {\left (b^{4} c^{4} - a^{4} d^{4}\right )} x^{3} \log \left (x\right ) - 6 \, {\left (a b^{3} c^{4} - a^{4} c d^{3}\right )} x^{2} + 3 \, {\left (a^{2} b^{2} c^{4} - a^{4} c^{2} d^{2}\right )} x}{6 \, {\left (a^{4} b c^{5} - a^{5} c^{4} d\right )} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.25, size = 175, normalized size = 1.22 \begin {gather*} \frac {b^{5} \log \left ({\left | b x + a \right |}\right )}{a^{4} b^{2} c - a^{5} b d} - \frac {d^{5} \log \left ({\left | d x + c \right |}\right )}{b c^{5} d - a c^{4} d^{2}} - \frac {{\left (b^{3} c^{3} + a b^{2} c^{2} d + a^{2} b c d^{2} + a^{3} d^{3}\right )} \log \left ({\left | x \right |}\right )}{a^{4} c^{4}} - \frac {2 \, a^{3} c^{3} + 6 \, {\left (a b^{2} c^{3} + a^{2} b c^{2} d + a^{3} c d^{2}\right )} x^{2} - 3 \, {\left (a^{2} b c^{3} + a^{3} c^{2} d\right )} x}{6 \, a^{4} c^{4} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.55, size = 153, normalized size = 1.06 \begin {gather*} \frac {d^4\,\ln \left (c+d\,x\right )}{c^4\,\left (a\,d-b\,c\right )}-\frac {b^4\,\ln \left (a+b\,x\right )}{a^5\,d-a^4\,b\,c}-\frac {\ln \left (x\right )\,\left (a^3\,d^3+a^2\,b\,c\,d^2+a\,b^2\,c^2\,d+b^3\,c^3\right )}{a^4\,c^4}-\frac {\frac {1}{3\,a\,c}-\frac {x\,\left (a\,d+b\,c\right )}{2\,a^2\,c^2}+\frac {x^2\,\left (a^2\,d^2+a\,b\,c\,d+b^2\,c^2\right )}{a^3\,c^3}}{x^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________